package com.cictec.middleware.gps.caculate.entity;

import java.util.Date;

import com.cictec.middleware.commons.utils.DateUtils;

/**
 * 趟次统计实体对象
 * @author ql
 *
 */
public class BusTrip implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2465255501710127883L;

	/** 车辆UUID */
	private String uuid;
	/** 车牌号 */
	private String plate;
	/** 司机id */
	private String doduuid = "";
	private String driverName = "";
	/** 线路id */
	private String lineid;
	/** 线路类型（1:上行、2：下行） */
	private String linetype;
	/** 【实际】趟次开始时间 */
	private Date startTime;
	private String startTimeStr;
	/** 【实际】趟次结束时间 */
	private Date endTime;
	private String endTimeStr;

	/** 开始站点 序号 */
	private int startseq;
	/** 结束站点 序号 */
	private int endseq;
	/** 当前班次 */
	private int currentShift;
	/** 趟次序号（实际趟次序号） */
	private int tripnumber;

	private double mileage;

	/** 计划发车时间 */
	private Date departureTime;
//	/** 计划发车时间 */
	private String departureTimeStr;

	/** 【实际】趟次开始时间 */
	public Date getStartTime() {
		return startTime;
	}

	/** 设置该趟次开始时间 */
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
		this.startTimeStr = DateUtils.formatDateTimes(startTime);
	}

	public Date getEndTime() {
		return endTime;
	}

	/** 【实际】趟次结束时间 */
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
		this.endTimeStr = DateUtils.formatDateTimes(endTime);
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getPlate() {
		return plate;
	}

	/**
	 * 车牌号
	 * @param plate
	 */
	public void setPlate(String plate) {
		this.plate = plate;
	}

	public String getDoduuid() {
		return doduuid;
	}

	/** 设置该趟次的司机uuid */
	public void setDoduuid(String doduuid) {
		this.doduuid = doduuid;
	}

	public String getLineid() {
		return lineid;
	}

	/** 设置线路uuid */
	public void setLineid(String lineid) {
		this.lineid = lineid;
	}

	public String getLinetype() {
		return linetype;
	}

	public void setLinetype(String linetype) {
		this.linetype = linetype;
	}

	public String getStartTimeStr() {
		return startTimeStr;
	}

	public void setStartTimeStr(String startTimeStr) {
		this.startTimeStr = startTimeStr;
	}

	public String getEndTimeStr() {
		return endTimeStr;
	}

	public void setEndTimeStr(String endTimeStr) {
		this.endTimeStr = endTimeStr;
	}

	public int getStartseq() {
		return startseq;
	}

	/** 设置趟次开始 站点序号 */
	public void setStartseq(int startseq) {
		this.startseq = startseq;
	}

	public int getEndseq() {
		return endseq;
	}

	/** 设置趟次结束 站点序号 */
	public void setEndseq(int endseq) {
		this.endseq = endseq;
	}

	/** 趟次序号（实际趟次序号） */
	public int getTripnumber() {
		return tripnumber;
	}

	/** 趟次序号（实际趟次序号） */
	public void setTripnumber(int tripnumber) {
		this.tripnumber = tripnumber;
	}

	public double getMileage() {
		return mileage;
	}

	public void setMileage(double mileage) {
		this.mileage = mileage;
	}

	public int getCurrentShift() {
		return currentShift;
	}

	/** 班次 */
	public void setCurrentShift(int currentShift) {
		this.currentShift = currentShift;
	}

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	/** 【计划】发车时间 */
	public Date getDepartureTime() {
		return departureTime;
	}

	/** 【计划】发车时间 */
	public void setDepartureTime(Date departureTime) {
		this.departureTime = departureTime;
		this.departureTimeStr = DateUtils.formatDateTimes(departureTime);
	}

	public String getDepartureTimeStr() {
		return departureTimeStr;
	}

	public void setDepartureTimeStr(String departureTimeStr) {
		this.departureTimeStr = departureTimeStr;
	}

}
